package com.pkk.webtest.controller;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.pkk.webtest.entity.UserInfo;
import com.pkk.webtest.service.UserService;

import lombok.extern.slf4j.Slf4j;

/**
 * @description:
 * @author: peikunkun
 * @create: 2018-08-16 09:51
 **/
@Controller
@RequestMapping("userController")
@Slf4j
public class UserController {

    @Resource
    private UserService userService;

    @RequestMapping("findUser")
    @ResponseBody
    public String findUser() {
        return userService.findUser().toString();
    }

    @RequestMapping("skipUser")
    public String skipUser() {
        return "user";
    }


}
